GtkAccelLabel: adjust recent accel changes
authorRyan Lortie <desrt@desrt.ca>
Tue, 18 Sep 2012 12:57:53 +0000 (08:57 -0400)
committerRyan Lortie <desrt@desrt.ca>
Tue, 18 Sep 2012 12:57:53 +0000 (08:57 -0400)
commit99a53112ece36709731ee78bb470c077069b03a0
tree2c0505ea5ef8b63e43ff66a612a8cd624cb7b85f
parent8c3caae33fe70a9e9e7b721212854c420b97c917
GtkAccelLabel: adjust recent accel changes

In the event that a GtkAccelKey was present for the closure but it
contained a keyval of 0 the previous code would show "".  After the
recent adjustments, "-/-" would be shown in this case.

It turns out to be a pretty common case, so fix the logic to stop using
'0' as a magic value to mean "don't have an accel" and add a separate
boolean for that purpose.
gtk/gtkaccellabel.c